package com.ruoyi.profession.domain;
import com.ruoyi.profession.utils.RandomUtil;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;




/**
 * 【请填写功能名称】对象 invitation_list
 *
 * @author ruoyi
 * @date 2024-06-14
 */
public class InvitationList extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String name;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String phone;

    /**
     * 身份证号（可校对位数）
     */
    @Excel(name = "身份证号", readConverterExp = "可=校对位数")
    private String idcard;

    /**
     * 邀请码（系统自动生成，6位随机数字）
     */
    @Excel(name = "邀请码", readConverterExp = "系=统自动生成，6位随机数字")
    private String lnvitationCode;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String descr;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setLnvitationCode(String lnvitationCode) {
//        this.lnvitationCode = lnvitationCode;
        this.lnvitationCode = RandomUtil.getSixstr();
    }

    public String getLnvitationCode() {
        return lnvitationCode;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    public String getDescr() {
        return descr;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("phone", getPhone())
                .append("idcard", getIdcard())
                .append("lnvitationCode", getLnvitationCode())
                .append("createTime", getCreateTime())
                .append("descr", getDescr())
                .toString();
    }


}